package com.zzyweb.demomp.interceptor;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

/**
 * @author zhiyi
 * @date 9/9/25
 **/
@Component
public class UserInterceptor implements HandlerInterceptor {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        /*String fullToken = request.getHeader("Authorization");
        if (fullToken != null && !fullToken.isEmpty()) {
            String token = fullToken.substring(7);
        }
        if (token == null || token.isEmpty()) {
            return false;
        }*/
        return false;
    }
}
